import Layout from '@/pages/public/layout' // 公共部分

const user = [{
  path: '/user/permission',
  component: Layout,
  children: [{
    path: '',
    component: () => import('@/pages/user/admin/permission/index.vue'),
    meta: {
      title: '节点管理',
      permission: 'user.admin.permission.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/user/admin/permission/create.vue'),
    meta: {
      title: '新建节点',
      permission: 'user.admin.permission.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/user/admin/permission/edit.vue'),
    meta: {
      title: '编辑节点',
      permission: 'user.admin.permission.edit'
    }
  }]
}]

export default user
